<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RMH.Entities.SupportPerson>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Support Person Details - <%= Html.Encode(Model.LastName) + ", " + Html.Encode(Model.FirstName) %></h2>

    <fieldset>
        <legend>Fields</legend>
        <p>
            Last Name:
            <%= Html.Encode(Model.LastName) %>
        </p>
        <p>
            First Name:
            <%= Html.Encode(Model.FirstName) %>
        </p>
        <p>
            Middle Name:
            <%= Html.Encode(Model.MiddleName) %>
        </p>
        <p>
            Email Address:
            <%= Html.Encode(Model.EmailAddress) %>
        </p>
        <p>
            Phone Number:
            <%= Html.Encode(Model.PhoneNumber) %>
        </p>
        <p>
            Alt. Phone Number:
            <%= Html.Encode(Model.PhoneNumberAlternate) %>
        </p>
        <fieldset>
        <legend>Address</legend>
        <p>
            Street 1:
            <%= Html.Encode(Model.Address == null ? null : Model.Address.Street1)%>
        </p>
        <p>
            Street 2:
            <%= Html.Encode(Model.Address == null ? null : Model.Address.Street2)%>
        </p>
        <p>
            Street 3:
            <%= Html.Encode(Model.Address == null ? null : Model.Address.Street3)%>
        </p>
        <p>
            City:
            <%= Html.Encode(Model.Address == null ? null : Model.Address.City)%>
        </p>
        <p>
            State:
            <%= Html.Encode(Model.Address == null ? null : Model.Address.State)%>
        </p>
        <p>
            Postal Code:
            <%= Html.Encode(Model.Address == null ? null : Model.Address.PostalCode)%>
        </p>
        </fieldset>
        <p>
            Vehicle Make:
            <%= Html.Encode(Model.VehicleMake) %>
        </p>
        <p>
            Vehicle Model:
            <%= Html.Encode(Model.VehicleModel) %>
        </p>
        <p>
            Vehicle Plate:
            <%= Html.Encode(Model.VehiclePlateState) + " " + Html.Encode(Model.VehiclePlateNumber) %>
        </p>
    </fieldset>
    <p>
        <%=Html.ActionLink("Edit", "Edit", new { id=Model.Id }) %> |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

